package com.wyp168.gulimall.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan("com.wyp168.gulimall.member.dao")   //mapper包扫描注解
@SpringBootApplication
@EnableFeignClients(basePackages = "com.wyp168.gulimall.member.feign")     //开启服务发现发现功能
@EnableDiscoveryClient  //开启服务注册功能
@RefreshScope   //动态刷新配置中心中的配置
public class MemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MemberApplication.class, args);
    }

}
